import request from "@/utils/request";
//获取分销用户列表
export function getBrokerageUserList(params) {
  return request({
    url: "/brokerage/user/page",
    method: "get",
    params: params,
  });
}

//获取佣金提现分页
export function getBrokerageWithdrawPage(params) {
  return request({
    url: "/brokerage/withdraw/page",
    method: "get",
    params: params,
  });
}

//通过申请
export function passBrokerageWithdraw(id) {
  return request({
    url: `/brokerage/withdraw/approve/${id}`,
    method: "put",
  });
}


//拒绝申请
export function rejectBrokerageWithdraw(data) {
  return request({
    url: `/brokerage/withdraw/reject`,
    method: "put",
    data
  });
}


//获取奖励记录
export function getBrokerageRecord(params) {
  return request({
    url: "/brokerage/record/page",
    method: "get",
    params,
  });
}

//获取某个用户邀请的人员
export function getBrokerageUserInvite(params) {
  return request({
    url: "/brokerage/user/invitation/user",
    method: "get",
    params,
  });
}
//获取某个用户邀请查询记录

export function getBrokerageUserInviteRecord(params) {
  return request({
    url: "/brokerage/user/invitation/query",
    method: "get",
    params,
  });
}

//分销管理--企业信息列表
export function getBrokerageCompanyList(params) {
  return request({
    url: "/enterprise/brokerage/listEnterpriseInfo",
    method: "get",
    params,
  });
}

// 分销管理--查询次数

export function getBrokerageQueryCount(params) {
  return request({
    url: "/taskQuery/brokerage/inquiries/search",
    method: "get",
    params,
  });
}

// 分销管理--查询人数
export function getBrokerageQueryList(params) {
  return request({
    url: "/taskQuery/brokerage/member/search",
    method: "get",
    params,
  });
}
